Skip to content

Improve OAuth2 DSL (FuncDSL and DSL)#1452

Merged
fjtirado merged 3 commits into
serverlessworkflow:mainfrom
mcruzdev:issue-1450
Jun 12, 2026
Merged

Improve OAuth2 DSL (FuncDSL and DSL)#1452
fjtirado merged 3 commits into
serverlessworkflow:mainfrom
mcruzdev:issue-1450

Conversation

@mcruzdev

Copy link
Copy Markdown
Collaborator

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it:
Allow to configure the full OAuth2 spec with DSL.

Special notes for reviewers:

Additional information (if needed):

Closes #1450

Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
Copilot AI review requested due to automatic review settings June 11, 2026 17:03
@mcruzdev mcruzdev requested a review from fjtirado as a code owner June 11, 2026 17:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds first-class OAuth2 authentication helpers to the fluent DSL (including OAuth2-specific endpoints configuration) and validates them via new functional DSL tests.

Changes:

  • Added new DSL.oauth2(...) overloads to support explicit OAuth2 endpoints and full OAuth2 policy customization.
  • Exposed the new OAuth2 overloads through FuncDSL.
  • Added JUnit coverage verifying both the convenience overload and the full-builder overload.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/DSL.java Introduces new OAuth2 overloads, including OAuth2 endpoints configuration and a full-policy builder entry point
experimental/fluent/func/src/main/java/io/serverlessworkflow/fluent/func/dsl/FuncDSL.java Re-exports the new OAuth2 overloads for the functional DSL layer
experimental/fluent/func/src/test/java/io/serverlessworkflow/fluent/func/FuncDSLOAuth2Test.java Adds tests asserting OAuth2 properties (authority, grant, client, endpoints, scopes/audiences) are properly set

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/DSL.java Outdated
Comment thread fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/dsl/DSL.java Outdated
mcruzdev added 2 commits June 11, 2026 15:47
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
@fjtirado fjtirado merged commit 2befe39 into serverlessworkflow:main Jun 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve OAuth2 DSL

3 participants